package com.gf.forcesystem.model.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.gf.framework.common.json.GfJsonMapper;

/**
 * @author gaofei
 * @date 2022/6/21 19:42
 */
public interface IMessage {
    @JsonIgnore
    default String getMessageType() {
        return getClass().getSimpleName();
    }
    @JsonIgnore
    default String getMessageInfo() {
        return GfJsonMapper.obj2String(this);
    }
}
